package com.goldplusgold.live.utils;

import java.util.UUID;

/**
 * UuidUtil
 * Created by Administrator on 2017/7/10.
 */
public class UuidUtil {
    private static final String ANONYMOUS_USER_ID_PREFIX = "anonymous-";

    public static String uuidString(){
        return UUID.randomUUID().toString().replaceAll("-", "");
    }

    public static String anonymousUserId(){
        return ANONYMOUS_USER_ID_PREFIX + uuidString();
    }
}
